package com.estar.assistsurvy.thread;

import com.estar.assistsurvy.constant.Constants;
import com.estar.assistsurvy.entity.RequestOthers;
import com.estar.assistsurvy.entity.grabPersonLocation;

import android.content.Context;
import android.os.Handler;
import android.util.Log;

public class GetOtherThread extends BaseThread {

	private RequestOthers requestOthers;

	public GetOtherThread(Context context, Handler handler, RequestOthers requestOthers) {
		super(context, handler);
		this.requestOthers = requestOthers;
	}
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		url_str=Constants.NAMESPACE+Constants.TASK_OTHERS;
		json=gson.toJson(requestOthers);
		postRequest(url_str, json);
		if(result!=null){
			Log.i("wl", "获取到的其他查勘员信息返回值"+result);
			grabPersonLocation PersonLocation=new grabPersonLocation();
			PersonLocation=gson.fromJson(result, grabPersonLocation.class);
			msg.what=1;
			msg.obj=PersonLocation;
			msg.sendToTarget();
		}
		
	}
}
